<template>
  <div>
    我是儿子喔 <br />
    {{ value }}===={{ n }}
    <button @click="hei">儿子</button>
    <button @click="changeN">改变N</button>
  </div>
</template>
<script>
export default {
  name: 'SonCom',
  props: {
    value: {
      type: String
    },
    n: {
      type: Number
    }
  },
  data () {
    return {

    }
  },
  created () {
  },
  computed: {


  },
  methods: {
    hei () {
      this.$emit('input', 'hhhh');

    },
    changeN () {
      this.$emit('update:n', 1234)
    }
  }
}
</script>
<style lang='less'  scoped>
</style>
